package initialize

import (
	"api-manager-server/middleware"
	"api-manager-server/router"
	"github.com/gin-gonic/gin"
)

func Routers() *gin.Engine {

	engine := gin.Default()
	engine.Use(middleware.Cors())
	group := engine.Group("api")
	{
		router.InitProjectRouter(group) // 项目相关的接口
	}
	return engine
}
